package com.oocl.formV1.pojo;

import java.util.Date;

public class User {
	private Integer id;
	private String name;
	private double sal;
	private Date birth;
	private String sex;
	
	public User() {
	}

	/**
	 * 
	 * @param id
	 * @param name
	 * @param sal
	 * @param birth
	 * @param sex
	 */
	public User(Integer id, String name, double sal, Date birth, String sex) {
		super();
		this.id = id;
		this.name = name;
		this.sal = sal;
		this.birth = birth;
		this.sex = sex;
	}

	/**
	 * 
	 * @param name
	 * @param sal
	 * @param birth
	 * @param sex
	 */
	public User(String name, double sal, Date birth, String sex) {
		this.name = name;
		this.sal = sal;
		this.birth = birth;
		this.sex = sex;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getSal() {
		return sal;
	}

	public void setSal(double sal) {
		this.sal = sal;
	}

	public Date getBirth() {
		return birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", sal=" + sal + ", birth=" + birth + ", sex=" + sex + "]";
	}

}
